using Android.App;
using CapstoneProject.DataAccess;
using System;
using Android.Runtime;

namespace CapstoneProject
{
    [Application]
    class CapstoneApplication : Application
    {
        public IUserRepository UserRepository { get; set; }
        public IAccountRepository AccountRepository { get; set; }

        public CapstoneApplication(IntPtr handle, JniHandleOwnership transfer)
            : base(handle, transfer)
        {
        }

        public override void OnCreate()
        {
            base.OnCreate();
            UserRepository = new StandardUserRepository(this);
            AccountRepository = new StandardAccountRepository(this);
        }
    }
}